#include "PcsCurveType.h"

QString CPcsCurveType::GetName(int iPcsCurveType)
{
    QString ret = "unknown";
    if (LOCAL_CURVE == iPcsCurveType) {
        //就地曲线(96个点，每个点表示15分钟，就地屏上设置点值)
        ret = "local_curve";
    } else if (REMOTE_CURVE == iPcsCurveType) {
        //远程曲线(96个点，每个点表示15分钟，后台页面设置点值并下发到屏上)
        ret = "remote_curve";
    } else if (LOCAL_DEFINE == iPcsCurveType) {
        //就地自定义(自定义时间段)
        ret = "local_define";
    } else
    {
        //todo
    }

    return ret;
}

bool CPcsCurveType::IsLocalCurve(int iPcsCurveType)
{
    return LOCAL_CURVE == iPcsCurveType;
}

bool CPcsCurveType::IsRemoteCurve(int iPcsCurveType)
{
    return REMOTE_CURVE == iPcsCurveType;
}

bool CPcsCurveType::IsLocalDefine(int iPcsCurveType)
{
    return LOCAL_DEFINE == iPcsCurveType;
}
